"""
list1 = ['1', ['4', '6'], '9']
list2 = [2, 8, 12, 18]
请将list1转换成list2
"""
list1 = ['1', ['4', '6'], '9']
list2 = [2, 8, 12, 18]
list1.clear() # 清空列表数据

# 将列表二的数据追加到列表一
list1.extend(list2)
print(list1)

# 循环
list1 = ['1', ['4', '6'], '9']
list2 = []
for item in list1:
    for a in item:
        b = int(a) * 2
        list2.append(b)
print(list2)